<html>
<body>

Simple example showing method lookup in Java. Execute RunExample to run this scenario - it shows that the method invoked depends only on the actual type of the object that receives the method, and not on the declared type. 
<p/>
&copy; Jens Dietrich, 2012

</body>
</html>